package com.usian.service.impl;

import com.usian.designer.HomeCategories;
import com.usian.mapper.CategoriesMapper;
import com.usian.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoriesServiceImpl implements CategoriesService {
    @Autowired
    private CategoriesMapper categoriesMapper;

    @Override
    public List<HomeCategories> getCategories() {
        return categoriesMapper.getDestination();
    }
}
